package com.study.system.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author 669
 * @CreateDate 2022/4/19 18:20
 * @Version 1.0
 */
public class DataUtils {
    public static String getStringDate(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String s = sdf.format(date);
        return s;
    }

    public static Date getDate() {
        //格式化：从 Date 到 String
        Date d = new Date();
        return d;
    }
}
